<template>
	<view id="index-mobile">
		<view class="content-mobile">
			<view class="header-box">
				<view class="phone">
					<view class="h3">{{userDetail.userPhone}}</view>
					<image @click="showTip()" src="/static/icon/icon_people_01.png" class="me-icon" mode=""></image>
				</view>
				<view class="name">本人</view>
			</view>
			<view class="margin-bg"></view>
			<view class="phone-ul">
				<view class="phone-li" @click="showTip()" v-for="(obj,i) in phoneArr" :key="i">
					<view class="h5">{{obj.val}}元</view>
					<view class="h8">售价{{obj.val}}元</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		userInfo
	} from "@/common/loadUserInfo.js"
export default {
	data() {
		return {
			phoneArr:[
				{val: 30,id:''},
				{val: 50,id:''},
				{val: 100,id:''},
				{val: 200,id:''},
				{val: 300,id:''},
				{val: 500,id:''},
			],
			userDetail: {},
		};
	},
	onLoad() {
		userInfo({
			success: (res) => {
				this.userDetail = res.data.userinfo
				uni.setStorageSync('userDetail', this.userDetail)
			},
			fail: (err) => {
				uni.navigateTo({
					url: '/pages/public/login'
				})
				console.log(err)
		
			}
		})
	},
	components: {

	},
	onShow() {

	},
	methods: {
		//提示
		showTip(){
			this.$api.msg('功能开发中')
		},
	}
};
</script>

<style>
	page {
		background: #fff;
	}
	
</style>

<style scoped lang="scss">
	.header-box {
		width: 100%;
		padding: 40rpx 28rpx;
		box-sizing: border-box;
		.phone {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 16rpx;
			.h3 {
				font-size: 56rpx;
				font-weight: 500;
				color: #1D1E22;
				line-height: 80rpx;
			}
			.me-icon {
				width: 50rpx;
				height: 50rpx;
			}
		}
		.name {
			font-size: 24rpx;
			font-weight: 400;
			color: #1D1E22;
		}
	}
	
	.phone-ul {
		width: 100%;
		padding: 40rpx 28rpx;
		box-sizing: border-box;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-column-gap: 24rpx;
		grid-row-gap: 22rpx;
		.phone-li {
			text-align: center;
			height: 112rpx;
			padding-top: 6rpx;
			border: 2rpx solid #EE486C;
			border-radius: 8rpx;
			box-sizing: border-box;
			.h5 {
				font-size: 30rpx;
				color: #EE486C;
				line-height: 42rpx;
				margin-bottom: 4rpx;
			}
			.h8 {
				font-size: 20rpx;
				color: #EE486C;
				line-height: 28rpx;
			}
		}
	}
	
</style>
